﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OpinionCategories.ascx.cs" Inherits="blackhouse.StareKino.Web.Modules.OpinionCategories" %>

<asp:Panel runat="server" ID="pnlSummaryOpinions">
    <div class="opinionCategories brownContent">
    <h2>
        <asp:Literal runat="server" ID="ltlHeaderTitle" /></h2>

    <asp:Repeater runat="server" ID="rptOpinionsNumbers" OnItemDataBound="rptOpinionsNumbers_ItemDataBound">
        <HeaderTemplate>
            <div class="summaryOpinionsNumbersWrapper">
        </HeaderTemplate>
        <ItemTemplate>
            <asp:Panel runat="server" ID="pnlSummaryOpinionsNumbers" CssClass="summaryOpinionsNumbers">
                <div class="summaryOpinionsNumber">
                    <asp:Literal runat="server" ID="ltlNumber" />
                </div>
                <div class="summaryOpinionsText">
                    <asp:Literal ID="ltlTitle" runat="server" /></div>
            </asp:Panel>
        </ItemTemplate>
        <FooterTemplate></div></FooterTemplate>
    </asp:Repeater>
    <div class="cleaner summaryOpinionsBreaker"></div>
    <div class="summaryOpinionsRightSite">
        <h3><%=GetGlobalResourceObject("Opinions", "opinionsScalSplit")%>:</h3>
        <asp:Repeater runat="server" ID="rptSummaryReviewCategories">
            <ItemTemplate>
                <div class="summaryOpinionCategory">
                    <span class="label"><%#Eval("Key") %></span>

                    <div class="marker" style="right: <%#(50 - ((KeyValuePair<string, double>)Container.DataItem).Value * 5).ToString("F1", CultureInfo.GetCultureInfo("en-US")) %>%"><span class="value"><%#Eval("Value", "{0:F2}") %></span></div>

                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <div class="cleaner"></div>
        </div>
</asp:Panel>
